-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: fix memory_usage method with deep of StringArray #33985
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: fix memory_usage method with deep of StringArray #33985
Conversation
a99b701
to
d0d94fb
Compare
d0d94fb
to
fcb4de1
Compare
@@ -85,6 +85,14 @@ class TestMethods(base.BaseMethodsTests): | |||
def test_value_counts(self, all_data, dropna): | |||
return super().test_value_counts(all_data, dropna) | |||
|
|||
def test_memory_usage(self, data): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you move this test to /tests/arrays/string_/test_string.py
?
(the tests in /extension/ are all common tests (shared among dtypes), while in /arrays/ we keep specific tests)
@kotamatsuoka thanks a lot for working on this! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a note in bugfix section, ExtensionArray in 1.1
3edc7ae
to
697d98e
Compare
thanks @kotamatsuoka as a followup can you add tests for each EA that we have. note that it is possible for memory usage under deep=True to be equal to deep=False (for some implementations). |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff